<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="myauctioneer.App"
	import="myauctioneer.dto.User"
	import="myauctioneer.dto.Article"
	import="java.util.ArrayList"
%>
<%@ include file="header.jsp" %>

<div id="content">
<% for(Article a : (ArrayList<Article>) request.getAttribute("aAL")) { %>
	<h1><a href="<%= App.getBaseUrl() %>/article/show?id=<%= a.getArticleId() %>">
	<%= a.getBrand() %>
	<%= a.getFamilyLine() %>
	<%= a.getModel() %>
	</a></h1>
	<p><table style="width: auto">
		<tr><td><strong>condition: </strong></td><td><%= a.getCondition() %></td></tr>
		<tr><td><strong>valid until: </strong></td><td><%= a.getValidUntil() %></td></tr>
		<tr><td><strong>price: </strong></td><td><%= a.getPrice() %> €</td></tr>
		<tr><td><strong>sale type: </strong></td><td><%= a.getSaleType() %></td></tr>
	</table></p>

	<p class="entry_bottom"><span>
	created by <a href="<%= App.getBaseUrl() %>/user/profile?id=<%= a.getUserId() %>">
		User <%= a.getUserId() %></a> | valid until: <%= a.getValidUntil() %>
<!--
	<% if(user != null && (user.getUserId() == a.getUserId() || user.isAdmin())) { %>
		| <a href="<%= App.getBaseUrl() %>/article/edit?id=<%= a.getArticleId() %>">edit</a>
	<% } %>
-->
	</span></p>
<% } %>
</div>
<%@ include file="footer.jsp" %>
